/*
 * Copyright (c) 2006-2023, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2023-xx-xx     YourName     first version
 */

#ifndef __DRV_OSPI_H__
#define __DRV_OSPI_H__

#include <rtthread.h>

#ifdef __cplusplus
extern "C" {
#endif

rt_err_t rt_hw_ospi_device_attach(
        const char *bus_name, 
        const char *device_name, 
        rt_base_t cs_pin, 
        rt_uint8_t data_line_width, 
        void (*enter_qspi_mode)(), 
        void (*exit_qspi_mode)()
    );

#ifdef __cplusplus
}
#endif

#endif /* __DRV_OSPI_H__ */
